package ru.spies.forms;

public class LastCookies {

	public static final String COOKIE_NAME_FORM_FOR_WORK="formForWork";
	
	public static final String COOKIE_NAME_SYSTEM_FORM="system";
	
	private static ESystemFunction lastSystemCookie;
	private static EDBTables lastTable;
	private static EDBFunctional lastDBFunction;
	
	private static LastCookies statThis;
	
	private LastCookies() {
	
	}
	
	public static LastCookies getInstance(){
		if (statThis==null){
			statThis = new LastCookies();
		}
		return statThis;
	}
		
	public ESystemFunction getLastSystemCookie() {
		return lastSystemCookie;
	}

	public void setLastSystemCookie(ESystemFunction lastSystemCookie) {
		LastCookies.lastSystemCookie = lastSystemCookie;
	}

	public EDBTables getLastTable() {
		return lastTable;
	}

	public void setLastTable(EDBTables lastTable) {
		LastCookies.lastTable = lastTable;
	}
	
	public void setLastDBFunction(EDBFunctional lastDBFunction){
		LastCookies.lastDBFunction = lastDBFunction;
	}
	
	public EDBFunctional getLastDBFunction(){
		return lastDBFunction;
	}
	
}
